﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TanmiaGrp.GeneralLedger.Core
{
    partial class VoucherDetail
    {
        [NotMapped]
        public double Balance
        {
            get { return Debit - Credit; }
        }

        private double runningBalance;

        [NotMapped]
        public double RunningBalance
        {
            get { return runningBalance; }
            set
            {
                if (runningBalance != value)
                {
                    runningBalance = value;
                    RaisePropertyChanged(() => RunningBalance);
                }
            }
        }
    }
}
